package pers.flowerinsnow.minecraft.forge.fastdungeonjoiner.manager

import net.minecraft.client.settings.KeyBinding
import net.minecraftforge.fml.client.registry.ClientRegistry
import org.lwjgl.input.Keyboard

object KeyManager {
  val OPENMENU = new KeyBinding(ConfigManager.Messages.keybinding_openmenu_description, Keyboard.KEY_M, ConfigManager.Messages.keybinding_fastdungeon_category)
  val FASTDUNGEON = new KeyBinding(ConfigManager.Messages.keybinding_fastdungeon_description, Keyboard.KEY_N, ConfigManager.Messages.keybinding_fastdungeon_category)

  def register(): Unit = {
    register(OPENMENU, FASTDUNGEON)
  }
  def register(keyBinding: KeyBinding*): Unit = {
    keyBinding.foreach(k => ClientRegistry.registerKeyBinding(k))
  }
}
